package com.gitee.wsl.struct.either.ext

import arrow.core.Either


/**
 * Map right to Unit. This restores `.void()` which was deprecated by Arrow.
 */
fun <A, B> Either<A, B>.unit() = map { }